package com.ruoyi.emergency.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergency.mapper.EmergencyPjMapper;
import com.ruoyi.emergency.domain.EmergencyPj;
import com.ruoyi.emergency.service.IEmergencyPjService;

/**
 * 事故后评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class EmergencyPjServiceImpl extends ServiceImpl<EmergencyPjMapper, EmergencyPj> implements IEmergencyPjService //修改
{
    @Autowired
    private EmergencyPjMapper emergencyPjMapper;

    /**
     * 查询事故后评价
     * 
     * @param id 事故后评价主键
     * @return 事故后评价
     */
    @Override
    public EmergencyPj selectEmergencyPjById(Long id)
    {
        return emergencyPjMapper.selectEmergencyPjById(id);
    }

    /**
     * 查询事故后评价列表
     * 
     * @param emergencyPj 事故后评价
     * @return 事故后评价
     */
    @Override
    public List<EmergencyPj> selectEmergencyPjList(EmergencyPj emergencyPj)
    {
        return emergencyPjMapper.selectEmergencyPjList(emergencyPj);
    }

    /**
     * 新增事故后评价
     * 
     * @param emergencyPj 事故后评价
     * @return 结果
     */
    @Override
    public int insertEmergencyPj(EmergencyPj emergencyPj)
    {
        return emergencyPjMapper.insertEmergencyPj(emergencyPj);
    }

    /**
     * 修改事故后评价
     * 
     * @param emergencyPj 事故后评价
     * @return 结果
     */
    @Override
    public int updateEmergencyPj(EmergencyPj emergencyPj)
    {
        return emergencyPjMapper.updateEmergencyPj(emergencyPj);
    }

    /**
     * 批量删除事故后评价
     * 
     * @param ids 需要删除的事故后评价主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyPjByIds(Long[] ids)
    {
        return emergencyPjMapper.deleteEmergencyPjByIds(ids);
    }

    /**
     * 删除事故后评价信息
     * 
     * @param id 事故后评价主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyPjById(Long id)
    {
        return emergencyPjMapper.deleteEmergencyPjById(id);
    }
}
